﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NanjingbeiRailwayStation.Data.ClickHouse.Models
{
    /// <summary>
    /// 事件通知
    /// </summary>
    public class EventNotification
    {
        /// <summary>
        /// 
        /// </summary>
        public string Imei {  get; set; }=string.Empty;

        /// <summary>
        /// 事件名称
        /// </summary>
        public string EventName { get; set; } = string.Empty;


        /// <summary>
        /// 事件名称 描述
        /// </summary>
        public string EventDescription
        {
            get
            {
                return Core.EventTypeTable.GetEventDescription(EventName);
            }

        }

         
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; } = string.Empty;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceClass { get; set; } = string.Empty;

        /// <summary>
        /// 安装位置
        /// </summary>
        public string InstallationLocation { get; set; } = string.Empty;


        /// <summary>
        /// 安装位置
        /// </summary>
        public string InstallationPosition { get; set; } = string.Empty;


        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime EventTime { get; set; } = DateTime.Now;


        /// <summary>
        /// 安装人员
        /// </summary>
        public string Installer { get; set; } = string.Empty;

        /// <summary>
        /// 
        /// </summary>
        public string InstallerTelphone { get; set; } = string.Empty;

        /// <summary>
        /// 安装人员
        /// </summary>
        public string Director { get; set; } = string.Empty;

        /// <summary>
        /// 负责人 
        /// </summary>
        public string DirectorTelphone { get; set; } = string.Empty;
    }
}
